<template>
  <!-- 面包屑组件 -->
  <el-breadcrumb separator-class="el-icon-arrow-right">
    <el-breadcrumb-item :to="{ path: '/welcome' }">首页</el-breadcrumb-item>
    <el-breadcrumb-item>{{ childMenu[0] }}</el-breadcrumb-item>
    <el-breadcrumb-item>{{ childMenu[1] }}</el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script>
export default {
  name: "Breadcrumb",
  props: {
    childMenu: {
      type: Array,
      default: ["用户管理", "用户列表"]
    }
  }
};
</script>

<style lang="less" scoped></style>
